package com.educate.config;

/**
 * @author xiongyu
 * @date 2021/11/7 19:07
 */

//@Configuration
public class MqConfig {
//    @Bean
//    public TopicExchange topicExchange(){
//        return new TopicExchange(MqConstants.NOTE_EXCHANGE,true,false);
//    }
//
//    @Bean
//    public Queue insertQueue(){
//        return new Queue(MqConstants.NOTE_INSERT_QUEUE,true);
//    }
//
//    @Bean
//    public Queue deleteQueue(){
//        return new Queue(MqConstants.NOTE_DELETE_QUEUE,true);
//    }
//
//    @Bean
//    public Binding insertBinding(){
//        return BindingBuilder.bind(insertQueue()).to(topicExchange()).with(MqConstants.NOTE_INSERT_KEY);
//    }
//
//    @Bean
//    public Binding deleteBinding(){
//        return BindingBuilder.bind(deleteQueue()).to(topicExchange()).with(MqConstants.NOTE_DELETE_KEY);
//    }

}
